package com.zzyl.nursing.job;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.zzyl.nursing.domain.Elder;
import com.zzyl.nursing.service.IReservationService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component("reservationJob")
@Slf4j
public class ReservationJob {

    @Autowired
    private IReservationService reservationService;

    public void recyclingExpires() {
        reservationService.recyclingExpires();
        log.info("回收过期预约成功");
    }
}
